<template>
	<view class="content">
		<!-- 可传按钮颜色 -->
		<share-poster btnColor="#F65236" :goodsInfo="goodsInfo" @Maskclose="Maskclose" :show="maskShow" @getImg="getImg">
		</share-poster>
	</view>
</template>

<script>
	import sharePoster from "@/components/sharePoster/sharePoster.vue"
	export default {
		name:"sharePosterByModel",
		components: {
			sharePoster
		},
		data() {
			return {
				// 弹窗显示
				maskShow: true,
				goodsInfo: {
					shareImg: "https://zjtp-v2.zijieshop.com/upload/gimg/2022/03/6225a7f8a65a1.jpg", // 商品图片路径
					qrcode: "https://zjtp-v2.zijieshop.com/upload/gimg/2022/03/6225a7f8a65a1.jpg", // 二维码路径
					title: 'COCOSILIYA抖音爆款男女士鎏金沙香水持久自然淡香流沙金香水', // 商品标题
					price: '158.00', // 价格
					Oldprice: '350.00', // 原价
					name: '天涯过客', // 推荐人
				}
			};
		},
		methods: {
			Maskclose() {
				this.maskShow = false
			},
			getImg(base64) {
				// console.log("canvas吐出来的base64", base64);
			}
		}
	}
</script>

<style lang="scss">
	.content {
	}
</style>
